---
title: Documents.BeforeReplaceShapes Event (Visio)
ms.prod: visio
ms.assetid: 55a66c47-a2ca-5c8a-2693-aaa1b079c704
ms.date: 06/08/2017
---


# Documents.BeforeReplaceShapes Event (Visio)

Occurs just before a shape-replacement operation.


## Syntax

 _expression_ . **BeforeReplaceShapes**_(replaceShapes)_

 _expression_ A variable that represents a **Documents** object.


### Parameters



|**Name**|**Required/Optional**|**Data type**|**Description**|
|:-----|:-----|:-----|:-----|
|||||
| _replaceShapes_|Required|REPLACESHAPESEVENT|An object whose properties return information about the shape-replacement operation.|

## See also


#### Concepts


[Documents Object](documents-object-visio.md)

